package com.gome.ai.aiparter;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@SpringBootApplication
public class AiParterApplication {

	public static void main(String[] args) {
		SpringApplication.run(AiParterApplication.class, args);
	}

	@RequestMapping("/version")
	public Object version(){
		return new String[]{ "v0.0.1" };
	}

	@Value("${server.port:8080}")
	int port;

	@RequestMapping("/")
	public Object index(){
		return new String[]{ "ws://localhost:" + port };
	}
}
